import ipaddress

def is_ipaddress(address):
  try:
    ip = ipaddress.ip_address(address)
    return True
  except ValueError:
    return False
